<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add film</title>
</head>
<script type="text/javascript">
function fileFields() {
	var div1 = document.createElement('div'); 
	div1.innerHTML = document.getElementById('newlinktpl').innerHTML;
	document.getElementById('addmore').appendChild(div1);  
}
</script>

<body>
<form action="addFilm" method="post">
<table>
	<tr>
		<td>filmname</td>
		<td><input type="text" name="filmname" size="53"/></td>
	</tr>
	<tr>
	<td>trailerlink</td>
		<td><input type="text" name="trailerlink"  size="53"/></td>
	</tr>
		<tr>
		<td>rating</td>
		<td><input type="text" name="rating"  size="53"/></td>
	</tr>
	<tr>
		<td>shortInfo</td>
		<td><textarea cols="40" rows="5" name="shortInfo"></textarea></td>
	</tr>
	<tr>
		<td>description</td>
		<td><textarea cols="40" rows="5" name="description"></textarea></td>
	</tr>
	<tr>
		<td>fromday</td>
		<td><input type="text" name="fromday"  size="53"/></td>
	</tr>
	<tr>
		<td>today</td>
		<td><input type="text" name="today"  size="53"/></td>
	</tr>
	<tr>
		<td>Image</td>
		<td><input type="text" name="imgLink"  size="53"/></td>
	</tr>
	<tr>
		<td>Schedule</td>
		<td>
		<div id="addmore">
			<input type="text" name="schedule" size="53" />
		</div>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><input type="button" onclick="fileFields()" value="Add more day" /></td>
	</tr>
</table>
<input type="submit" value="Submit" />
</form>

<div id="newlinktpl" style="display:none">  
	<input type="text" name="schedule" size="53">  
</div> 
</body>
</html>